﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace IInject.Registration
{
	public interface IRegistry : IEnumerable, IDisposable
	{
		bool Contains(Type type, string key);
		RegistryContext Get(Type type, string key);
        IEnumerable<RegistryContext> GetAll(Type type, string key);
        bool Register(Type from, RegistryContext context);
        bool Register(Type from, string key, IEnumerable<RegistryContext> contexts);
	}
}
